package com.zzz.robot201.mvp.model.api.bean;

import java.util.List;

public class EquipmentBean {

    /**
     * success : true
     * code : 200
     * msg : 查询成功
     * data : [{"id":1,"deviceCode":"00000001","deviceIp":"127.0.0.2","devicePort":9099,"deviceQrcode":"qrcode/00000001.png","deviceStatus":1,"addtime":"2020-06-26 17:50:30","updatetime":"2020-06-26 18:10:41","userId":1,"bindTime":"2020-06-26 18:35:15","connectStatus":1,"isConnected":"none"}]
     */

    private boolean success;
    private String code;
    private String msg;
    private List<DataBean> data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 1
         * deviceCode : 00000001
         * deviceIp : 127.0.0.2
         * devicePort : 9099
         * deviceQrcode : qrcode/00000001.png
         * deviceStatus : 1
         * addtime : 2020-06-26 17:50:30
         * updatetime : 2020-06-26 18:10:41
         * userId : 1
         * bindTime : 2020-06-26 18:35:15
         * connectStatus : 1
         * isConnected : none
         */

        private int id;
        private String deviceCode;
        private String deviceIp;
        private int devicePort;
        private String deviceQrcode;
        private int deviceStatus;
        private String addtime;
        private String updatetime;
        private int userId;
        private String bindTime;
        private int connectStatus;
        private int connectStatus2;
        private String isConnected;
        private boolean isSelect;

        public DataBean(String deviceCode, String deviceIp, int devicePort) {
            this.deviceCode = deviceCode;
            this.deviceIp = deviceIp;
            this.devicePort = devicePort;
        }

        public int getConnectStatus2() {
            return connectStatus2;
        }

        public void setConnectStatus2(int connectStatus2) {
            this.connectStatus2 = connectStatus2;
        }

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getDeviceCode() {
            return deviceCode;
        }

        public void setDeviceCode(String deviceCode) {
            this.deviceCode = deviceCode;
        }

        public String getDeviceIp() {
            return deviceIp;
        }

        public void setDeviceIp(String deviceIp) {
            this.deviceIp = deviceIp;
        }

        public int getDevicePort() {
            return devicePort;
        }

        public void setDevicePort(int devicePort) {
            this.devicePort = devicePort;
        }

        public String getDeviceQrcode() {
            return deviceQrcode;
        }

        public void setDeviceQrcode(String deviceQrcode) {
            this.deviceQrcode = deviceQrcode;
        }

        public int getDeviceStatus() {
            return deviceStatus;
        }

        public void setDeviceStatus(int deviceStatus) {
            this.deviceStatus = deviceStatus;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public String getUpdatetime() {
            return updatetime;
        }

        public void setUpdatetime(String updatetime) {
            this.updatetime = updatetime;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getBindTime() {
            return bindTime;
        }

        public void setBindTime(String bindTime) {
            this.bindTime = bindTime;
        }

        public int getConnectStatus() {
            return connectStatus;
        }

        public void setConnectStatus(int connectStatus) {
            this.connectStatus = connectStatus;
        }

        public String getIsConnected() {
            return isConnected;
        }

        public void setIsConnected(String isConnected) {
            this.isConnected = isConnected;
        }
    }
}
